import React, {useContext, useRef, useEffect} from 'react';
import CreatorContext from './creator-context';
import './drag-container.less';

export default (props: any) => {
    const { path } = props;
    const {compConfigs, setCompConfigs} = useContext(CreatorContext);
    const childELem: any = useRef(null);
    useEffect(() => {
        console.log('@@', compConfigs, path);
    }, [childELem]);
    // compConfigs.childrenNode 
    return <div className="material-drag-container" ref={childELem}>拖拽区域</div>
}